function plotFP(fpname)
%*=+--+=#=+--      UAS Severe Weather Simulation Softeware        --+=#=+--+=#*%
%          Copyright (C) 2013 Regents of the University of Colorado.           %
%                             All Rights Reserved.                             %
%                                                                              %
%    This program is free software: you can redistribute it and/or modify      %
%    it under the terms of the GNU General Public License version 2 as         %
%    published by the Free Software Foundation.                                %
%                                                                              %
%    This program is distributed in the hope that it will be useful,           %
%    but WITHOUT ANY WARRANTY; without even the implied warranty of            %
%    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             %
%    GNU General Public License for more details.                              %
%                                                                              %
%    You should have received a copy of the GNU General Public License         %
%    along with this program.  If not, see <http://www.gnu.org/licenses/>.     %
%                                                                              %
%           Jack Elston                                                        %
%           elstonj@colorado.edu                                               %
%                                                                              %
%*=+--+=#=+--                 --+=#=+--+=#=+--                    --+=#=+--+=#*%

fid = fopen(['flight_plans/' fpname]);
header = fgetl(fid); 
header = fgetl(fid); 
data = textscan(fid, '%d%d%f%f%f%f%d%d%d%d%d%d%d%d%f%d%d','delimiter',' ');
fclose(fid);

lat0 = 40.72;
lon0 = -105.0;

if sum(findstr(fpname,'Path')) > 0
  plot(data{4},data{3},'r*-');
else
  %plot([data{4};data{4}(1)],[data{3};data{3}(1)],'r*-');
  plot(lon_to_m([data{4}]-lon0,lat0),lat_to_m([data{3}]-lat0),'r*-','LineWidth',2);
end
hold on;
